import request from '@/utils/request'

//列表
export function refundList(query) {
  return request({
    url: '/refund/list',
    method: 'get',
    params: query
  })
}
//删除
export function delRefundList(ids) {
  return request({
    url: '/refund/'+ids,
    method: 'DELETE'
  })
}
// 新增退款申请
export function refundAdd(data) {
  return request({
    url: '/refund',
    method: 'post',
    data: data
  })
}
//详情/refund/{id}
export function refundDetail(id) {
  return request({
    url: '/refund/businessCode/'+id,
    method: 'get'
  })
}
//编辑提交/refund
export function refundEdit(data) {
  return request({
    url: '/refund',
    method: 'put',
    data: data
  })
}
//退货退款列表
export function auditRefundList(query) {
  return request({
    url: '/audit/refundList',
    method: 'get',
    params: query
  })
}
//更新用友单号
export function tNumberUpdate(data) {
  return request({
    url: '/refund/tNumberUpdate',
    method: 'put',
    data: data
  })
}
